Skip to content

feat: add opt-in dataplane format#596

Open
github-vincent-miszczak wants to merge 1 commit intoVictoriaMetrics:mainfrom
github-vincent-miszczak:dataplane_format
Open

feat: add opt-in dataplane format#596
github-vincent-miszczak wants to merge 1 commit intoVictoriaMetrics:mainfrom
github-vincent-miszczak:dataplane_format

Conversation

@github-vincent-miszczak
Copy link

@github-vincent-miszczak github-vincent-miszczak commented Feb 26, 2026

Add an opt-in setting and the corresponding UI toggle to enable logs dataplane format.

Using this format allows Grafana correlations to work correctly with label values.
Without it, it's not possible to craft links that use label values when using Grafana correlations.

It's opt-in because the fields are renamed, which may break client-side transformations.


Summary by cubic

Adds an opt-in setting to output logs in Grafana dataplane format, enabling automatic ${labelKey} variables in correlations. Default is off to avoid breaking transformations that reference Time/Line.

  • New Features
    • New “Use dataplane format” toggle in datasource settings; provisioning key: jsonData.useDataplaneFormat.
    • When enabled: rename Timetimestamp and Linebody, and set frame meta to DataFrameType.LogLines with typeVersion [0,0] so ${labelKey} works in correlations.
    • Updated README, CHANGELOG, and tests to cover the new format.

Written for commit e49b2ea. Summary will update on new commits.

@github-vincent-miszczak github-vincent-miszczak marked this pull request as ready for review February 26, 2026 17:09
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 8 files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants